
FROM ubuntu:14.04

# update 
RUN apt-get update
RUN apt-get upgrade -y


# build-essential 
RUN apt-get install libssl1.0.0=1.0.1f-1ubuntu2 -y --force-yes
RUN apt-get install -y build-essential 


# basic app . git vim
RUN apt-get install -y git
RUN apt-get install -y vim
RUN apt-get install -y curl
RUN apt-get install -y openssh-server

# Install Oracle Java 8
RUN \
  echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list && \
  apt-get update -q && \
  DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common python-software-properties && \
  add-apt-repository -y ppa:webupd8team/java && \
  apt-get update -q && \
  echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
  echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections && \
  DEBIAN_FRONTEND=noninteractive apt-get install -y oracle-java8-installer && \
  apt-get clean


